<?php
/**
 * Created by PhpStorm.
 * User: 小瓶子
 * Date: 2018/11/7
 * Time: 9:32
 */
namespace app\home\controller;

use think\Controller;
use think\Session;

class Common extends Controller
{
    public function __construct()
    {
        parent::__construct();
        $user_name = Session::get('user_name');
        if (empty($user_name)){
            $this->error("请先登录",url("home/login/login"));
            die;
        }

    }
}